/* 模块维护 */
import httpRequest from '@/utils/httpRequest'
// 获取列表
export function getTenantList (params) {
  return httpRequest({
    url: '/tenant/tenant/list',
    method: 'get',
    params
  })
}
// 获取账套列表
export function getTenantBookList (params) {
  return httpRequest({
    url: '/tenant/book/list',
    method: 'get',
    params
  })
}
// 设置为禁用
export function disableSys (params) {
  return httpRequest({
    url: '/tenant/tenant/modifyState',
    method: 'post',
    params
  })
}
// 租户开通
export function tenantopend (params) {
  return httpRequest({
    url: '/tenant/tenant/modifyState',
    method: 'post',
    params
  })
}
// 角色展示
export function roleList (params) {
  return httpRequest({
    url: '/sys/role/list',
    method: 'get',
    params
  })
}
// 部门展示
export function treeData (params) {
  return httpRequest({
    url: '/sys/office/treeData',
    method: 'get',
    params
  })
}
// 根据部门ID查询用户
export function userList (params) {
  return httpRequest({
    url: '/sys/user/list1',
    method: 'get',
    params: params
  })
}
// 账套授权
export function save (params) {
  return httpRequest({
    url: '/tenant/bookAutho/save',
    method: 'post',
    headers: {'Content-Type': 'application/json; charset=utf-8'},
    data: params
  })
}
// 授权查询
export function getAuthor (params) {
  return httpRequest({
    url: '/tenant/bookAutho/getAuthor',
    method: 'post',
    headers: {'Content-Type': 'application/json; charset=utf-8'},
    data: params
  })
}


